from selenium import webdriver
# driver =webdriver.Ie() # 启动IE浏览器
# driver = webdriver.Firefox() #火狐浏览器
driver =webdriver.Chrome() #谷歌浏览器
driver.get("http://www.baidu.com")
print(driver.title) #获取等到网站标题
driver.quit()

